package ahut2020.day16final;

public class Factorial2 {//把所有的结果计算出来，等待被调用
    static int[] F;

    static void fill() {
        F = new int[13];
        F[0] = 1;
        for (int i = 1; i < F.length; i++) {
            F[i] = F[i - 1] * i;
        }
    }

    public static void main(String[] args) {
        fill();
        System.out.println(F[7]);
    }
}
